package com.game.src.main;

import java.awt.Graphics;

public class Explosion {

	protected double x;
	protected double y;
	private int time = 15;

	protected Textures tex;

	public Explosion(double x, double y, Textures tex) {
		this.x = x;
		this.y = y;
		this.tex = tex;
	}

	public void render(Graphics g) {
		g.drawImage(tex.explosion1, (int) x, (int) y, null);
	}

	public void tick() {
		time--;

	}

	public int getTime() {
		return time;
	}

}
